package cn.com.connext.scrm.repository.master;

import cn.com.connext.scrm.domain.master.NoteTag;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface NoteTagRepository extends JpaRepository<NoteTag, String>, JpaSpecificationExecutor  {

    @Query(value = "select n from NoteTag n where n.category = 'category' ")
    List<NoteTag> findCategoryList();
}
